import api from '../utils/apiUtils';

export function add (params) {
    return api.post (`/shop/server/create`, params);
}

// 列表
export function getTosTemplateList (params) {
    return api.get (`/shop/server/page`, params);
}

// 详情
export function getInfo (id) {
    return api.get (`/shop/server/${id}`);
}

// 删除
export function del (params) {
    return api.delete(`/shop/server`,params);
}

export function edit (id,params) {
    return api.put(`/shop/server/${id}`,params);
}

